import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/table/list',
    method: 'get',
    params
  })
}

// 1)	资产总数量
export function getRoomInfo(params) {
  return request({
    url: 'manage/assetsCon/roomInfoDetails.do',
    method: 'get',
    params
  })
}

// 1)	所有合同
export function getChartInfoDetails(params) {
  return request({
    url: 'manage/assetsCon/chartInfoDetails.do',
    method: 'get',
    params
  })
}
// 2)	空置房屋
export function getEmptyRoomDetails(params) {
  return request({
    url: 'manage/finCon/emptyRoomDetails.do',
    method: 'get',
    params
  })
}
// 3)	逾期合同
export function getOverdueRoomDetails(params) {
  return request({
    url: 'manage/finCon/overdueRoomDetails.do',
    method: 'get',
    params
  })
}
// 4)	已出租住宅房
export function getRentRoomDetails(params) {
  return request({
    url: 'manage/finCon/rentRoomDetails.do',
    method: 'get',
    params
  })
}
// 4)	已出租营业房
export function getBusinessRoomDetails(params) {
  return request({
    url: 'manage/finCon/businessRoomDetails.do',
    method: 'get',
    params
  })
}

// 1)	资产增加
export function getRentAddDetails(params) {
  return request({
    url: 'manage/operate/rentAddDetails.do',
    method: 'get',
    params
  })
}

// 2)	 资产减少
export function getRentCutDetails(params) {
  return request({
    url: 'manage/operate/rentCutDetails.do',
    method: 'get',
    params
  })
}

// 3)	未办证房产
export function getNoCardDetails(params) {
  return request({
    url: 'manage/operate/noCardDetails.do',
    method: 'get',
    params
  })
}

// 4)	已抵押房产
export function getIsPawnDetails(params) {
  return request({
    url: 'manage/operate/isPawnDetails.do',
    method: 'get',
    params
  })
}

// 1)	隐患处数
export function getHidDangerDetails(params) {
  return request({
    url: 'manage/security/hidDangerDetails.do',
    method: 'get',
    params
  })
}

// 2)	整改完成处数
export function getAbarbeitungDetails(params) {
  return request({
    url: 'manage/security/abarbeitungDetails.do',
    method: 'get',
    params
  })
}

// 3)	未整改完成处数
export function getNoAbarbeitungDetails(params) {
  return request({
    url: 'manage/security/noAbarbeitungDetails.do',
    method: 'get',
    params
  })
}

// 4)	危房处数
export function getDangerRoomDetails(params) {
  return request({
    url: 'manage/security/dangerRoomDetails.do',
    method: 'get',
    params
  })
}

// 1)	详情 参数:guid
export function getRoomInfoDetails(params) {
  return request({
    url: 'manage/details/roomInfoDetails.do',
    method: 'get',
    params
  })
}

// 1)	  details / roomCon.do  房屋情况日志
export function getRoomCon(params) {
  return request({
    url: 'manage/details/roomCon.do',
    method: 'get',
    params
  })
}

// 2)	 details / roomRepair.do  维修情况
export function getRoomRepair(params) {
  return request({
    url: 'manage/details/roomRepair.do',
    method: 'get',
    params
  })
}

// 3)	 details / roomCheck.do 资产检查记录
export function getRoomCheck(params) {
  return request({
    url: 'manage/details/roomCheck.do',
    method: 'get',
    params
  })
}

// 4)	 details / safeCheck.do 安全巡查记录
export function getSafeCheck(params) {
  return request({
    url: 'manage/details/safeCheck.do',
    method: 'get',
    params
  })
}

// 5)	 details / nowDanger.do 当前隐患
export function getNowDanger(params) {
  return request({
    url: 'manage/details/nowDanger.do',
    method: 'get',
    params
  })
}

// 合同详情

export function getChartDetails(params) {
  return request({
    url: 'manage/details/chartInfoDetails.do',
    method: 'get',
    params
  })
}

export function getNonpayment(params) {
  return request({
    url: 'manage/details/nonpayment.do',
    method: 'get',
    params
  })
}

export function getDeducted(params) {
  return request({
    url: 'manage/details/deducted.do',
    method: 'get',
    params
  })
}

export function getPayment(params) {
  return request({
    url: 'manage/details/payment.do',
    method: 'get',
    params
  })
}

export function getMarginPay(params) {
  return request({
    url: 'manage/details/marginPay.do',
    method: 'get',
    params
  })
}

// 详情头部
export function getTopMessage(params) {
  return request({
    url: 'manage/details/topMessage.do',
    method: 'get',
    params
  })
}

// 详情图片
export function getRoomPIC(params) {
  return request({
    url: 'manage/details/roomPIC.do',
    method: 'get',
    params
  })
}

// 合同列表
export function getReturnAddress(params) {
  return request({
    url: 'manage/details/returnAddress.do',
    method: 'get',
    params
  })
}
